const a = async function (
  _,
  { row },
  _01,
  { dc: { open, close, setModal }, xe: { get } }
) {
  const layout = { id: "1803718207419789313" };
  const modal = {
    title: "编辑单位标签",
    width: "55vw",
    height: document.body.clientHeight * 0.35,
    defaultFullscreen: false,
    destroyOnClose: false,
    maskClosable: false,
    open: true,
    centered: true,
    showCancelBtn: true,
  };
  const inner = {
    onOk: async function (_, { origin }, { dc: { http, message } }) {
      const params = get(origin, "1803718735570743297", {});
      console.log(params);
      setModal({ confirmLoading: true });
      try {
        const { code, msg } = await http.post(
          {
            url: "/qyk/bz/updateRtkTag",
            data: { companyName: row.name, tagList: params.tagList },
          },
          { isTransformResponse: false }
        );
        setModal({ confirmLoading: false });
        if (code !== 200) {
          message.error(msg);
        } else {
          close(true);
        }
      } catch (error) {
        setModal({ confirmLoading: false });
      }
    },
  };
  open({
    inner,
    layout,
    modal,
    transfer: {
      ...row,
      tagList: row.tagList ? row.tagList.map((i) => i.tagId + "") : [],
    },
  });
};
